﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" href="../layui/css/layui.css"  media="all">
<link href="../css/base.css" rel="stylesheet" type="text/css" />
<link href="../css/layout.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="Export">
  <div class="mar mra">
  <div class="dis">
    <table width="280" border="0" cellspacing="0" cellpadding="0" class="con">
      <tr>
        <th width="90">选择文件：</th>
        <td width="90">
            <div class="cla" onclick="iTheFile.click()"><a href="#"><span>浏览<input type="file" id="iTheFile" style="display:none;"/></span></a></div>
         </td>
         <th width="90">未选择文件</th>
         
      </tr>
    </table>
  </div>
  
  <div class="btn">
      <div class="ext"><a href="#"><span style="padding-left: 15px;">确定</span></a></div>
      </div>
      </div>
</div>
<script type="text/javascript" src="../layui/layui.js"></script> 
<script>
layui.use('laydate', function(){
  var laydate = layui.laydate;
  
  var start = {
    min: laydate.now()
    ,max: '2099-06-16 23:59:59'
    ,istoday: false
    ,choose: function(datas){
      end.min = datas; //开始日选好后，重置结束日的最小日期
      end.start = datas //将结束日的初始值设定为开始日
    }
  };
  
  var end = {
    min: laydate.now()
    ,max: '2099-06-16 23:59:59'
    ,istoday: false
    ,choose: function(datas){
      start.max = datas; //结束日选好后，重置开始日的最大日期
    }
  };
  
  document.getElementById('LAY_demorange_s').onclick = function(){
    start.elem = this;
    laydate(start);
  }
  document.getElementById('LAY_demorange_e').onclick = function(){
    end.elem = this
    laydate(end);
  }
  
});
</script>
</body>
</html>
